<?php
include("global_files/global_session.inc");
include("global_files/global_html.inc");
include("global_files/global_pgsql.inc");
include("global_files/global_functions.inc");
include("global_files/global_report.inc");
include("global_files/global_form.inc");

$db=new cDatabase();

$page=new cPage();

$page->title="விவசாயி விபரங்கள்";
$page->heading="விவசாயி விபரங்கள்";
$page->doHeaderHtml();
$page->doCentreHtml();

$report=new cReport();

$farmer_id=$_SESSION["gfarmer_id"];
$db->query="select f.farmer_name as \"பெயர்\", f.address1 as \"முகவரி\", f.city as \"நகரம்\", f.village as \"கிராமம்\", f.state as \"மாநிலம்\" from farmer f where farmer_id=$farmer_id;";
$db->runQuery();
$farmer_details=$db->returnArrays();

$report->customization["table_style"]="width:50%; border-style:none; border-width:0;";
$report->customization["tr_style"]="border-style:none; border-width:0;";
$report->highlight=false;

$report->data=$farmer_details;
echo "<div align=\"center\">";

$report->doVerticalTable();

$page->doFooterHtml();
?>
